package com.example.demo01.utils;

import android.content.Context;
import android.widget.Toast;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.TypeReference;

public class Utils {

    static Context context; // 上下文

    public Utils(Context context) {
        Utils.context = context;
    }

    //. 弹窗
    public void showToast(String content) {
        Toast.makeText(context, content, Toast.LENGTH_SHORT).show();
    }

}
